import registnet.base.student.Student;
import registnet.base.source.StudentSource;

StudentSource studentSource;
Student student;

void submit(String studentNumber){
	
	if(studentNumber == "xxxx-xxxxx"){
		alert("");
		return;
	}
	
	registnet.dao.Student daoStudent = new registnet.dao.StudentPeer().getStudent(studentNumber);
	studentSource = new StudentSource(daoStudent);
	student = studentSource.getStudent();
	//student.computeStanding();
	//student.computeClassification();
	//student.computePriority();
	try{
		resultStanding.setValue(student.getStanding().getDescription());
		resultClassification.setValue(student.getClassification().getDescription());
		resultPriority.setValue(Integer.toString(student.getPriority().getDescription()));
	}catch(Exception e){
		alert(e.getMessage());
	}
}

void reset(){
	resultStanding.setValue("STANDING");
	resultClassification.setValue("CLASSIFICATION");
	resultPriority.setValue("PRIORITY");
}